<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        /* 
            全局作用域下,this指向的是window
        */
        // console.log(window);
        // console.log(this);
        /* 
            全局作用域下的函数this指向的是window
        */
        function fn(){
            console.log("fn里面");
            console.log(this);//看调用者,谁调用的,那么这个this就执行谁
        }
        window.fn();
    </script>
</body>
</html>